module.exports = (options) => {
  return {
    transformIndexHtml: {
      order: "pre",
      handler: (html, ctx) => {
        // console.log(ctx);
        return html.replace(/<%= title %>/g, options.inject.data.title);
      },
    },
  };
};
